package com.zxm.ssm.entity;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ZXM
 * @ClassName User
 * @Description TODO
 * @date 2021/7/18 10:11
 */
@Data
public class User implements Serializable {
    private Integer id;
    @NotBlank
    private String username;
    @NotBlank
    private String password;
    @Min(0)
    private Float money;
    private Integer gender;
    private Integer age;
    private String phone;
    private Date createTime;
    private Integer role;
}
